jQuery(function($) {
	$(document).ready(function() {
		$.ajax({
			type : "GET",
			url : "./api/reports/getSummaryDesignationReport",
			data : "{}",
			success : function(Result) {
				var date = [];
				date=Result;
				DreawChart(date);
			},
			error : function(Result) {
				alert("Error");
			}
		});
	});
	function DreawChart(dates) {

		$('#containercolumn')
				.highcharts(
						{

							chart: {
						        type: 'column'
						    },
							title : {
								text : 'Bench Summary'
							},
							subtitle : {
								text : 'By Desigation'
							},
							xAxis : {
								categories : [ 
								               'Senior Director', 
								               'Director',
								               'Portfolio Manager', 
												'Senior Manager',
												'Manager', 
												'Senior Consultant',
												'Consultant', 
												'Associate Consultant',
												'Senior Software Engineer',
												'Software Engineer',
												'Software Associate', 
												'Sub-Con'

								],
								crosshair : true
							},
							yAxis: {
						        min: 0,
						        title: {
						            text: 'Number'
						        }
						    },
						    plotOptions: {
						        column: {
						            pointPadding: 0.2,
						            borderWidth: 0
						        }
						    },
							series : [ {
								name : 'Bench Num',
								data : dates
							} ]
						});
	}
});
